//
//  HNTodayCell.m
//  XDEducation
//
//  Created by 星道 on 17/5/22.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "HNTodayCell.h"

@implementation HNTodayCell
{
    IBOutlet UILabel *_Title;
    IBOutlet UILabel *_Number;
}


- (void)setModel:(list *)Model
{
    _Model = Model;
    _Title.text = Model.title;
    _Number.text = [[Model.flowers stringValue] stringByAppendingString:[self GetFruitType:Model.type]];
}



//判断Type获取数据单位
- (NSString *)GetFruitType:(NSNumber *)Type
{
    switch ([Type integerValue])
    {
        case 12:return @"颗";break;
        case 15:return @"道";break;
        default:return @"朵";break;
    }
}
@end
